var submit01 = document.getElementById("submit01");
var checkBox = document.getElementById("checkBox");
var number =document.getElementById("number");

checkBox.addEventListener("click", check_function);

function check_function(){
    if (checkBox.checked !== false){
        submit01.style.backgroundColor="#446dff";
        submit01.removeAttribute("disabled");
    }else {
        submit01.style.backgroundColor="rgba(99, 125, 255, 0.75)";
        submit01.setAttribute("disabled","true");
    }
}

function submit_function(){
    console.log(number.value);
    if (number.value !== "") {
        alert("登录成功！");
        window.location.href='./index.html';
    }else {
        alert("请检查验证码是否有误！")
    }
}